package org.realogic.btp.resourcefile;

import java.io.File;
import java.io.Serializable;

public class KResouceFile implements Serializable {
	
	private static final long serialVersionUID = 6001943284997954511L;

	private File resouce;
	
	private long lastModifiedDate;

	public KResouceFile(File resouce_) {
		this.resouce = resouce_;
		this.lastModifiedDate = resouce_.lastModified();
	}

	public File getResouce() {
		return resouce;
	}

	public void setResouce(File resouce_) {
		this.resouce = resouce_;
		this.lastModifiedDate = resouce_.lastModified();
	}

	public boolean isModified() {
		boolean flag = false;
		long currentDate = resouce.lastModified();
		if (currentDate > lastModifiedDate) {
			flag = true;
		}
		return flag;
	}
}
